public class Main {
    public static void main(String[] args) throws InterruptedException {
        User user = new User("张三", "123", 100);

        MyThread myThread1 = new MyThread(user, 1, 10, "线程1");
        MyThread myThread2 = new MyThread(user, 2, 20, "线程2");
        MyThread myThread3 = new MyThread(user, 1, 30, "线程3");
        MyThread myThread4 = new MyThread(user, 2, 40, "线程4");
        MyThread myThread5 = new MyThread(user, 1, 50, "线程5");
        MyThread myThread6 = new MyThread(user, 2, 60, "线程6");

        MyThread[] myThreads = new MyThread[]{myThread1, myThread2, myThread3, myThread4, myThread5, myThread6};

        for (MyThread myThread : myThreads) {
            myThread.start();
            myThread.join();
        }

    }
}

